﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class SystemManage_Default : PageBase
{
    public string SubPage = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (_User.Competences.CompetencesList == "")
        {
            PublicFunction.GoError(ErrorNumber.NotEnoughCompetence, "对不起，您没有足够的权限访问此页面", "Admin_Default");

            return;
        }

        if (!IsPostBack)
        {
            string RequestLoginPage = "";

            try
            {
                RequestLoginPage = Request["SubPage"];
            }
            catch
            {
                RequestLoginPage = "";
            }

            if ((RequestLoginPage == null) || (RequestLoginPage == ""))
            {
                SubPage = "SystemManageIndex.aspx";
            }
            else
            {
                SubPage = RequestLoginPage;
            }
        }        
    }

    #region Web 窗体设计器生成的代码

    override protected void OnInit(EventArgs e)
    {
        isRequestLogin = true;
        //RequestCompetences = Competences.BuildCompetencesList(Competences.Competence + Competences.FillContent;
        RequestLoginPage = "SystemManage/SystemManageIndex.aspx";

        base.OnInit(e);
    }

    #endregion
}
